Conversation
Add first test of raising error on python side
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #38 +/- ##
===========================================
- Coverage 100.00% 94.85% -5.15%
===========================================
Files 7 10 +3
Lines 68 175 +107
Branches 0 20 +20
===========================================
+ Hits 68 166 +98
- Misses 0 5 +5
- Partials 0 4 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
znichollscr
left a comment
There was a problem hiding this comment.
Interesting. I like the fact that we only have to deal with one object type, therefore wrapping is a bit simpler. The tradeoff is that we have to deal with checking "What type of object do I have" elsewhere. I'm not sure if that makes things better or worse on balance. Suggestion for now, let's try with this and continue onto the next steps (actually trying to put a basic climate model in here). Once we've done that, we can make a decision about what we like and don't like.
|
Thinking about it more, the other thing I don't love is that we're going to have to alter |
|
Yes, I agree with both points you made. I was also concerned about What I initially liked about it was that having a single, centralized array unified memory management. It also led me to create the tag attribute, which helped flag whether a slot is free or not. And freeing the But perhaps these are more "didactic" conveniences than actual code advantages.. we could achieve the same behavior in other ways I think. |
Description
Alternative path to achieve the same thing. All the result type are contained in a unique
ResultGenobject so that we now have a uniqueinstance_arrayof theResultGentype.I am now working on the testing part.
Checklist
Please confirm that this pull request has done the following:
changelog/